package day3;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Check3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        //while加上break 代替do while
        String reply = "";
        while (true) {
            System.out.println("学习了理论，完成了上机");
            System.out.println("请老师检查");
            reply = in.next();
            if (reply.equals("yes"))
                break;
        }
        System.out.println("合格了，可以回家了");
    }
}
